﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Npc
    {
        private string _npcname;
        private int _nchu;
        private int _ying;

        public Npc() { }

        public Npc(string npcname, int nchu)
        {
            Npcname = npcname;
            Nchu = nchu;
        }

        public string Npcname { get => _npcname; set => _npcname = value; }
        public int Nchu { get => _nchu; set => _nchu = value; }
        public int Ying { get => _ying; set => _ying = value; }

        public void Say()
        {
            switch (Nchu)
            {
                case 1:
                    Console.WriteLine("{0}出拳：剪刀", this.Npcname);
                    break;
                case 2:
                    Console.WriteLine("{0}出拳：石头", this.Npcname);
                    break;
                case 3:
                    Console.WriteLine("{0}出拳：布", this.Npcname);
                    break;
                default:
                    break;
            }
        }
    }
}
